//
//  AClass.m
//  2Notification1
//
//  Created by zhengwei on 2/4/16.
//  Copyright © 2016 zhengwei. All rights reserved.
//

#import "AClass.h"

@implementation AClass
-(id)init{
    self = [super init];
    if (self) {
//        [[NSNotificationCenter defaultCenter]postNotificationName:@"TESTNOTIF" object:nil];
        NSMutableDictionary *dic = [[NSMutableDictionary alloc]init];
        [dic setValue:@"123" forKey:@"keya"];
//        参数1 @"TESTNOTIF" 参数2 object 参数3 dic
        [[NSNotificationCenter defaultCenter]postNotificationName:@"TESTNOTIF" object:[NSNumber numberWithInt:5] userInfo:dic];
//      NSNumber:obj int
    }
    return self;
}
@end
